package com.oa.modules.approvalsec1.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.oa.common.utils.AppUtils;
import com.oa.common.utils.PageUtils;
import com.oa.common.utils.Query;
import com.oa.modules.approvalsec1.dao.TeacherQualificationDao;
import com.oa.modules.approvalsec1.entity.TeacherQualificationEntity;
import com.oa.modules.approvalsec1.service.TeacherQualificationService;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;


@Service("teacherQualificationService")
public class TeacherQualificationServiceImpl extends ServiceImpl<TeacherQualificationDao, TeacherQualificationEntity> implements TeacherQualificationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {

        IPage page = AppUtils.getPage(new Query<TeacherQualificationEntity>(),params);
        return AppUtils.setPage(page, baseMapper.findPage(params), baseMapper.findRecords(page, params));

    }

    @Override
    public void saveFile(TeacherQualificationEntity teacherQualification) {
        baseMapper.saveFile(teacherQualification);
    }

    @Override
    public TeacherQualificationEntity selectTeacherQualificationEntity(TeacherQualificationEntity teacherQualification) {
        return baseMapper.selectTeacherQualificationEntity(teacherQualification);
    }

    @Override
    public void saveOther(TeacherQualificationEntity teacherQualification) {
        baseMapper.saveOther(teacherQualification);
    }

    @Override
    public void deleteByUserAndType(TeacherQualificationEntity teacherQualification) {
        baseMapper.deleteByUserAndType(teacherQualification);
    }

    @Override
    public List<TeacherQualificationEntity> queryByUser(String createOper) {
        return baseMapper.queryByUser(createOper);
    }

    @Override
    public void updateByIdx(TeacherQualificationEntity teacherQualification) {
        baseMapper.updateByIdx(teacherQualification);
    }

    @Override
    public void settle(String id) {
        baseMapper.settle(id);
    }

    @Override
    public void reject(Map<String, Object> map) {
        baseMapper.reject(map);
    }

    @Override
    public void yushen(String id) {
        baseMapper.yushen(id);
    }

    @Override
    public List<TeacherQualificationEntity> queryAllAdopt(TeacherQualificationEntity teacherQualification) {
        return baseMapper.queryAllAdopt(teacherQualification);
    }


}
